<?php
namespace app\index\validate;

use think\Validate;

class Password extends Validate {
    protected $rule = [
        'old_pwd'         => 'require',
        'password'        => 'require',
        'password2'  => 'require|confirm:password',
    ];

    protected $message = [
        'old_pwd.require'         => '请输入旧密码',
        'password.require'        => '请输入新密码',
        'password2.require'       => '请输入确认密码',
        'password2.confirm'       => '二次密码不一致'
    ];
}
